﻿using DbEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DAL
{
   public class UserInfoService
    {
        /// <summary>
        /// 用户登陆校验
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        public static bool Loging(UserInfo user)
        {
            if (user == null)
                return false;
            if (user.userName == "admin" && user.passWorrld == "admin1066")
                return true;
            else
                return false;
        }
    }
}
